package com.belizer.demo.fastjson;

import com.alibaba.fastjson.JSONObject;

import java.io.FileInputStream;
import java.io.FileNotFoundException;

public class Demo {
    public static void main(String[] args) throws FileNotFoundException {
        FileInputStream  fileInputStream = new FileInputStream("C:\\Users\\Lenovo\\Desktop\\新建 文本文档.txt");

        String fileContent = JSONObject.toJSONString(fileInputStream);
        System.out.println(fileContent);
    }
}
